# 9.11

class User:
    def __init__(self,first_name,last_name,location,telephone):
        self.first = first_name.title()
        self.last = last_name.title()
        self.loc = location.title()
        self.tele = telephone

        self.login_attempts = 0

    def describe_user(self):
        print(f"name: {self.first} {self.last}")
        print(f"location: {self.loc}")
        print(f"Telephone: {self.tele}")

    def greet_user(self):
        print(f"Hello! {self.first} {self.last}")

    def increment_login_attempts(self):
        self.login_attempts += 1

    def reset_login_attempts(self):
        self.login_attempts = 0

class Admin(User):
    def __init__(self,first_name,last_name,location,telephone):
        super().__init__(first_name,last_name,location,telephone)
        self.privileges = privileges()

class privileges:
    def __init__(self,privildeges=[]):
        self.privileges = privileges

    def show_privileges(self):
        print("\nPrivileges:")
        if self.privileges:
            for privilege in self.privileges:
                print(f"-{privilege}")
        else:
            print('This user has no privilages.')